<?php

// Start generation time measurement
$generation_time = microtime( true);

/**
 * uniBoard Main File
 *
 * Light and fast forum solution for web 2.0-like communities.
 *
 * @package		uniBoard
 * @author		Rafał Pitoń
 * @license		http://www.gnu.org/licenses/gpl-3.0.html
 * @since		Version 0.1
 * 
 * ------------------------------------------------------------------------
 * 
 * $Date: 2010-08-25 20:32:20 +0000 (Wed, 25 Aug 2010) $
 * $Revision: 47 $
 * $Author: rafio.xudb@gmail.com $
 */

// ------------------------------------------------------------------------

// Define php extension used in files
define( 'PHP_EXT', '.php');

// Define ROOT path
define( 'ROOT_PATH', './');

// Define System path
define( 'SYSTEM_PATH', ROOT_PATH . 'system/');

// Define Admin Mode as 0
define( 'IN_ADMIN', 0);

// Require initialisation script
require_once( SYSTEM_PATH . 'init' . PHP_EXT);

// Create main class
$appCore = new appCore();

// ------------------------------------------------------------------------

// Run application: forum
new app_forum( $appCore);

// Output generation stuff
echo '<h1>Engine generation summary</h2>
<br /><b>Generated in:</b> '.round( microtime( true) - $generation_time, 5).'s
<br /><b>Used memory:</b> '.round( memory_get_usage() / 1024, 2).' KB
<br /><b>Reserved memory:</b> '.round( memory_get_usage( true) / 1024, 2).' KB';
